package com.clp.util.hutool.core.exceptions;

import com.clp.util.hutool.core.util.StrUtil;

public class UtilException extends RuntimeException {
    public <T> UtilException(Throwable throwable, String messageTemplate, Object... params) {
        super(StrUtil.format(messageTemplate, params), throwable);
    }

    public UtilException(String messageTemplate, Object... params) {
        super(StrUtil.format(messageTemplate, params));
    }

    public UtilException(Throwable e) {
        super(ExceptionUtil.getMessage(e), e);
    }
}
